#ifndef CIVIEW_FEEDBACKSELECTION_H
#define CIVIEW_FEEDBACKSELECTION_H

namespace CIView {
    class FeedbackSelection {
    /**
     * This class includes all data needed to draw the selection rectangle region   
     **/
    public:        
        float x1, y1, x2, y2;             //The points that define the selection rectangle        

        inline void Render (const float zNear) {
            glLineWidth (1.0f);

            glBegin (GL_LINE_LOOP);
                glVertex3f (x1, y1, -zNear);
                glVertex3f (x2, y1, -zNear);
                glVertex3f (x2, y2, -zNear);
                glVertex3f (x1, y2, -zNear);            
            glEnd();
        }
    };
}

#endif /* CIVIEW_FEEDBACKSELECTION_H */
